package com.ponhu.ea2.stockcenter.provider.service.entity;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ponhu.ea2.stockcenter.provider.entity.StockInventoryReal;
import com.ponhu.ea2.stockcenter.provider.entity.StockInventoryUnreal;

import java.util.Collection;
import java.util.List;

/**
 *
 */
public interface StockInventoryUnrealService extends IService<StockInventoryUnreal> {
    /**
     * 判断库存是否为虚拟类货品
     * @param inventoryCode 货品编码
     * @return
     */
    boolean isUnrealInventory(String inventoryCode);

    List<StockInventoryUnreal> getUnRealInventoryStockList(Collection<String> inventoryCodeList);

    /**
     * 创建并初始化库存
     * @param goodsId
     * @param inventoryId
     * @param inventoryCode
     * @param stockNumber
     * @return
     */
    boolean createAndInitStockData(Long goodsId, Long inventoryId, String inventoryCode, int stockNumber);

}
